﻿using System.Web.Mvc;
using AmazeUI.bll;

namespace Ema.Controllers
{
    /// <summary>
    /// The frame controller.
    /// </summary>
    public class FrameController : BaseController
    {
        XtNasBll xtNasBll = new XtNasBll();

        /// <summary>
        /// 左侧菜单
        /// </summary>
        /// <param name="titid">
        /// 左侧导航父节点ID
        /// </param>
        /// <param name="navid">
        /// 左侧导航子节点ID
        /// </param>
        /// <returns>
        /// The <see cref="ActionResult"/>.
        /// </returns>
        public ActionResult Nav(int titid = 0, int navid = 0)
        {
            var list = xtNasBll.GetNases();
            return this.PartialView(list);
        }

        /// <summary>
        /// 尾部
        /// </summary>
        /// <returns>
        /// The <see cref="ActionResult"/>.
        /// </returns>
        public ActionResult Footer()
        {
            return this.PartialView();
        }
    }
}
